package edu.sctu.huangtianlin.day201505101;

/**
 * Created by user17 on 2015/5/10.
 */
public class Judge {
    public static void main(String[] args) {
        JudgeOne judgeone = new JudgeOne();
        JudgeThree[] array = new JudgeThree[3];

        array[0]=judgeone.assignmentOne();
        array[1]=judgeone.assignmentTwo();
        array[2]=judgeone.assignmentThree();

        for(int i=0;i <array.length;i++){
            JudgeThree a =array[i];
            if(a.getAge() > 20){
                System.out.println("姓名："+a.getName()+"性别"+a.getSex()+"年龄"+a.getAge()+"学号"+a.getNumber());
            }
        }

//		JudgeThree a =judgeone.assignmentOne();
//if(a.getAge() > 20){
//System.out.println("姓名："+a.getName()+"性别"+a.getSex()+"年龄"+a.getAge()+"学号"+a.getNumber());
//}
//judgeone.assignmentTwo();
//JudgeThree b =judgeone.assignmentTwo();
//if(b.getAge() > 20){
//System.out.println("姓名："+b.getName()+"性别"+b.getSex()+"年龄"+b.getAge()+"学号"+b.getNumber());
//}
//judgeone.assignmentThree();
//JudgeThree c =judgeone.assignmentThree();
//if(c.getAge() > 20){
//System.out.println("姓名："+c.getName()+"性别"+c.getSex()+"年龄"+c.getAge()+"学号"+c.getNumber());
//
    }

}
